<template>
	<view>
		<view>
			<image class="img" src="../../static/error.png" ></image>
		</view>
		<view style="margin-top: 19rpx; font-size: 24px;">{{title}}</view>
		<view style="margin-top: 40rpx; font-size: 14px;">{{msg}}</view>
		<view style="margin-top: 40rpx;">
			<button class="butt" @click="clieye">返回首页</button>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				_id:12,
				title:"",
				msg:""
			}
		},
		onLoad(res) {
			this._id=res.id
			this.api.getErrorInfo({id:this._id}).then(res=>{
				console.log(this._id)
				this.title=res.data.title
				this.msg=res.data.msg
			})
		},
		methods:{
			clieye(){
				uni.navigateTo({
					url:"/pages/index/index?id="+this._id
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
		text-align: center;
		.img{
			width: 302rpx;
			height: 302rpx;
		}
		.butt{
			color: rgba(255, 255, 255, 1);
			background: rgba(67, 207, 124, 1); 
			border-radius: 30px;
		}
	}
</style>